cmake_minimum_required(VERSION 3.20)

project(edit)

add_library(edit OBJECT)
add_library(cusedit::edit ALIAS edit)

file(GLOB_RECURSE SRC_DIR_SOURCE_LIST "*.c" "*.cpp", "*.cc")
file(GLOB_RECURSE SRC_DIR_INC_LIST "*.h", "*.hpp")

target_sources(
    ${PROJECT_NAME}
    PRIVATE ${SRC_DIR_SOURCE_LIST}
    PUBLIC ${SRC_DIR_INC_LIST}
)

target_include_directories(
    ${PROJECT_NAME}
    PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
)